From: Jonas Ã…dahl Date: Wed, 15 Apr 2020 09:16:32 +0000 (+0200) Subject: js/ui: Always use namespace for animation modes X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~684^2^2~488 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=8d1e4659d19c7a28aa7682558063f1c29d14bc10;p=gnome-shell.git js/ui: Always use namespace for animation modes Clutter.Animation doesn't contain any animation modes, they live in Clutter.AnimationMode. The places we did `Clutter.Animation.WHATEVER` just evaluated to `undefined`. Thus, use the correct namespace for the animation mode enums. https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1199 --- diff --git a/js/ui/panel.js b/js/ui/panel.js index c2e0f00d3..e4f20daa6 100644 --- a/js/ui/panel.js +++ b/js/ui/panel.js @@ -281,7 +281,7 @@ var AppMenuButton = GObject.registerClass({ this.remove_all_transitions(); this.ease({ opacity: 0, - mode: Clutter.Animation.EASE_OUT_QUAD, + mode: Clutter.AnimationMode.EASE_OUT_QUAD, duration: Overview.ANIMATION_TIME, onComplete: () => this.hide(), }); diff --git a/js/ui/switcherPopup.js b/js/ui/switcherPopup.js index 23d74ff39..1ff7f00f4 100644 --- a/js/ui/switcherPopup.js +++ b/js/ui/switcherPopup.js @@ -317,7 +317,7 @@ var SwitcherPopup = GObject.registerClass({ this.ease({ opacity: 0, duration: POPUP_FADE_OUT_TIME, - mode: Clutter.Animation.EASE_OUT_QUAD, + mode: Clutter.AnimationMode.EASE_OUT_QUAD, onComplete: () => this.destroy(), }); } else {